<script setup lang="ts">
import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'

const url = ref<string>('')
onLoad((options) => {
    if (options.title) {
        uni.setNavigationBarTitle({
            title: decodeURI(options.title)
        })
    }
    url.value = options?.url ?? ''
})

</script>

<template>
    <web-view :src="url"></web-view>
</template>

<style lang="scss" scoped></style>
